package com.pet.wemedia.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pet.model.media.pojos.WmUserFriend;
import com.pet.wemedia.mapper.WmUserFriendMapper;
import com.pet.wemedia.service.WmUserFriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WmUserFriendServiceImpl extends ServiceImpl<WmUserFriendMapper, WmUserFriend> implements WmUserFriendService {

    @Autowired
    WmUserFriendMapper wmUserFriendMapper;

    @Override
    public List<WmUserFriend> bylist(Integer userId, Integer sharedStatus) {
        return wmUserFriendMapper.bylist(userId,sharedStatus);
    }

    @Override
    public void updateByFriendId(Integer userId,Integer friendId, Integer sharedStatus) {
        wmUserFriendMapper.updateByFriendId(userId, friendId, sharedStatus);
    }
}